package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

import com.xiangxiangjd.aop.DictData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 添加退役航材的单号
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("date_no")
@ApiModel(value="DateNo对象", description="添加退役航材的单号")
@Data
public class DateNo extends Model<DateNo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id",example = "1")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "申请单位（登录用户的单位)")
    @TableField("applicant")
    private String applicant;

    @ApiModelProperty(value = "申请单位名字")
    @TableField(exist=false)
    private String applicantName;

    @ApiModelProperty(value = "经办人 （登录用户）")
    @TableField("user_id")
    private String userId;


    @ApiModelProperty(value = "经办人名字")
    @TableField(exist=false)
    private String name;




    @ApiModelProperty(value = "获取日期")
    @TableField("purchase_date")
    private String purchaseDate;

    @DictData(dictDataType = "获取方式")
    @ApiModelProperty(value = "资产来源（下拉选）")
    @TableField("assets_source")
    private String assetsSource;


    @ApiModelProperty(value = "所属单位(下拉选)")
    @TableField("affiliated_units")
    private String affiliatedUnits;

    @ApiModelProperty(value = "所属单位名称(下拉选)")
    @TableField(exist=false)
    private String affiliatedUnitsName;

    @ApiModelProperty(value = "0未提交/1待审批/2审批通过/3审批不通过")
    @TableField("approval_state")
    private String approvalState;

    @ApiModelProperty(value = "日期单号")
    @TableField("odd_number")
    private String oddNumber;

    @ApiModelProperty(value = "批次审批不通过原因")
    @TableField("errer_reason")
    private String errerReason;

    @ApiModelProperty(value = "审批人ID")
    @TableField("approval_user_id")
    private String approvalUserId;

    @ApiModelProperty(value = "更新时间(上次审批时间)")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private String createTime;


    @ApiModelProperty(value = "物品信息（添加使用）")
    @TableField(exist=false)
    private List<Goods> goodsList;


    @ApiModelProperty(value = "物品信息（查询使用）")
    @TableField(exist=false)
    private Goods goods;

}
